package cn.zane.domain.activity.service.trial.factory;

import cn.zane.domain.activity.model.entity.MarketProductEntity;
import cn.zane.domain.activity.model.entity.TrialBalanceEntity;
import cn.zane.domain.activity.model.valobj.GroupBuyActivityDiscountVO;
import cn.zane.domain.activity.model.valobj.SkuVO;
import cn.zane.domain.activity.service.trial.node.RootNode;
import cn.zane.types.design.framework.tree.StrategyHandler;
import lombok.*;
import org.springframework.stereotype.Service;

/**
 * @author: zane
 * @date: 2025-10-24
 * @description: TODO
 */
@RequiredArgsConstructor
@Service
public class DefaultActivityStrategyFactory {

    private final RootNode rootNode;

    public StrategyHandler<MarketProductEntity, DynamicContext, TrialBalanceEntity> strategyHandler() {
        return rootNode;
    }


    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public static class DynamicContext{
        // 拼团活动营销配置值对象
        private GroupBuyActivityDiscountVO groupBuyActivityDiscountVO;
        // 商品信息
        private SkuVO skuVO;

    }
}
